package com.lagou.study.order.service;

import com.lagou.study.order.mapper.OrderMapper;
import com.lagou.study.order.pojo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class OrderService {

    @Autowired
    private OrderMapper orderMapper;

    public void create(String id) {
        orderMapper.save(new Order(id, new Date()));
    }
}
